package ogon.listviewadv;

import android.view.View;
import android.widget.ImageView;
import android.widget.RatingBar;
import android.widget.TextView;

public class ViewWrapper {
	View base;
	RatingBar rating=null;
	TextView label=null;
	ViewWrapper(View base) {
		this.base=base;
	}
	RatingBar getRatingBar(){
		if(rating==null){
			rating=(RatingBar)base.findViewById(R.id.rating);
		}
		return(rating);
	}
	TextView getLabel(){
		if(label==null){
			label=(TextView)base.findViewById(R.id.label);
		}
		return(label);
	}
	
}
